<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.deleteTutorialWelcome}"/>
    </ui:define>

    <ui:define name="content">

        <ui:fragment id="deleteTutorialFragment">
            <h:form id="deleteTutorialForm">
                <h:outputText value="#{bundle.deleteMessageInformation} '#{flowScope.currentTutorial.subject}' ? "/>

                <rich:panel id="deleteTutorialPanel" header="#{resourceBundle.deleteTutorialWelcome}">

                    <h:panelGrid id="deleteTutorialGrid" columns="2">
                        <h:outputText value="#{resourceBundle.deleteTutorialTextUnitName} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.unitName}"/>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextSubject} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.subject}"/>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextContain} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.contain}"/>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextCorrection} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.correction}"/>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextDate} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.date}">
                            <f:convertDateTime pattern="dd/MM/yy" type="date"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextStartTime} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.startTime}">
                            <f:convertDateTime pattern="HH:mm" type="time"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextEndTime} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.endTime}">
                            <f:convertDateTime pattern="HH:mm" type="time"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextLinkSupport} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.linkSupport}"/>

                        <h:outputText value="#{resourceBundle.deleteTutorialTextLinkCorrection} : "/>
                        <h:outputText value="#{flowScope.currentTutorial.linkCorrection}"/>
                    </h:panelGrid>
                </rich:panel>

                <a4j:commandButton id="deleteTutorialButtonDelete"
                                   value="#{bundle.Yes}"
                                   action="delete"/>
                <a4j:commandButton id="deleteTutorialButtonCancel"
                                   value="#{bundle.No}"
                                   action="cancel"
                                   immediate="true"/>

            </h:form>
        </ui:fragment>
    </ui:define>

</ui:composition>